package com.tedu.interceptor.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {
    @RequestMapping("/reg")
    public  String reg(){
        System.out.println("UserController.reg: 开始用户注册");
        return "注册成功";
    }

    @RequestMapping("/login")
    public String login(){
        System.out.println("UserController.login: 开始用户登录了");
        return "登陆成功";
    }

    @RequestMapping("/delete")
    public String delete(){
        System.out.println("UserController.delete: 删除一个用户");
        return "用户删除成功";
    }


}
